<template>
  <div class="flex" style="padding:0px 5px">
    <el-button size="mini" class="border-btn" style="padding: 0 1px;" @click="selectCredit(itemList)">{{ statusName == 1 ? '已查询征信风控报告' : statusName == 2 ? '该用户征信查询失败' : statusName == 3 ? '查询征信申请中' : '查看征信风控报告' }}</el-button>
    <!-- {{ isSuccess == 1 ? '已查询征信风控报告' : isSuccess == 2 ? '该用户征信查询失败' : isSuccess == 3 ? '查询征信申请中' : '查看征信风控报告' }} -->
  </div>
</template>

<script>
export default {
  name: 'creditBtn',
  props: {
    itemList:{
      type:Object,
      default:()=>({})
    },
    statusName: {
      type: String,
      default: ''
    }
  },
  data() {
    return {

    }
  },
  mounted() {
  },
  methods: {
    selectCredit(item){
      this.$emit('handleClick',item)
    }
  }
}
</script>

<style lang="scss" scoped>
.border-btn {
  height: 25px;
  padding-top: 0;
  padding-bottom: 0;
  background: #ffffff;
  border: 1px solid $mainBlue;
  border-radius: 3px;
  color: $mainBlue;
  font-size: 12px;
}
</style>
